package com.ibeetl.admin.core.entity;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

/*
*  用户角色关系
* gen by beetlsql 2016-11-22
*/
public class BackCharge extends BaseEntity {

    // 自增id
	@SeqID(name = "ORACLE_CORE_SEQ_NAME")
	@AutoID
    private Long id;
    // 授权机构id
    @NotNull(message = "用户openId不能为空")
    private String openId;
    
    @NotNull(message = "type不能为空")
    private String type;
    
    @NotNull(message = "amount不能为空")
    private int amount;
    
    // 授权角色id
    @NotNull(message = "score不能为空")
    private int score;

    private int giftScore;

    private Date createTime;
    
    private String creator;

	private  String orderNo;

	//用户充值时间
	private Date userChargeTime;
	
	//用户充值金额(分)
	private int userChargeAmount;
	
	public Date getUserChargeTime() {
		return userChargeTime;
	}

	public void setUserChargeTime(Date userChargeTime) {
		this.userChargeTime = userChargeTime;
	}

	public int getUserChargeAmount() {
		return userChargeAmount;
	}

	public void setUserChargeAmount(int userChargeAmount) {
		this.userChargeAmount = userChargeAmount;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getGiftScore() {
		return giftScore;
	}

	public void setGiftScore(int giftScore) {
		this.giftScore = giftScore;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
}
